package com.ksd.modules.course.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ksd.common.po.BatchIdsPO;
import com.ksd.commons.IBaseService;
import com.ksd.modules.course.entity.AdminCourse;
import com.ksd.modules.course.po.AdminCourseSavePO;
import com.ksd.modules.course.po.AdminCourseSearchPO;
import com.ksd.modules.course.vo.AdminCourseVo;

public interface IAdminCourseService extends IBaseService<AdminCourse> {


    /**
     * 查询列表
      * @param adminCourseSearchPO
     * @return
     */
    Page<AdminCourseVo> findAdminCourses(AdminCourseSearchPO adminCourseSearchPO);

    /**
     * 回收站
     * @param adminCourseSearchPO
     * @return
     */
    Page<AdminCourseVo> findAdminCoursesRecyle(AdminCourseSearchPO adminCourseSearchPO);

    /**
     * 保存和更新
     * @param adminCourseSavePO
     * @return
     */
    AdminCourseVo saveUpdateAdminCourse(AdminCourseSavePO adminCourseSavePO);


    /**
     * 根据id获取明细
     * @param id
     * @return
     */
    AdminCourseVo getAdminCourseById(Long id);

    /**
     * 单个逻辑删除
     * @param id
     * @return
     */
    Boolean deleteAdminCourseById(Long id);

    /**
     * 单个恢复
     * @param id
     * @return
     */
    Boolean recoverByIdAdminCourse(Long id);

    /**
     * 单个物理删除
     * @return
     */
    Boolean removeAdminCourseById(Long id);

    /**
     * 批量逻辑删除
     * @param batchIdsPO
     * @return
     */
    Boolean bacthDeletesAdminCourse(BatchIdsPO batchIdsPO);

    /**
     * 批量恢复
     * @param batchIdsPO
     * @return
     */
    Boolean batchRecoversAdminCourse(BatchIdsPO batchIdsPO);

    /**
     * 批量物理删除
     * @param batchIdsPO
     * @return
     */
    Boolean batchRemovesAdminCourse(BatchIdsPO batchIdsPO);


    /**
     * 修改状态
     * @param id
     * @param column
     * @param value
     * @return
     */
    boolean updateStatus(Long id,String column,Integer value);

    /**
     * 修改状态
     * @param id
     * @param column
     * @param value
     * @return
     */
    boolean updateStatusStr(Long id,String column,String value);

    /**
     * 批量上架
     *
     * @param batchIdsPO
     * @return
     */
    Boolean batchDowns(BatchIdsPO batchIdsPO);

    /**
     * 批量上架
     *
     * @param batchIdsPO
     * @return
     */
    Boolean batchUps(BatchIdsPO batchIdsPO);
}
